package hk.com.ocsl.registry
{
	import flash.utils.Dictionary;
	import flash.utils.Proxy;
	import flash.utils.flash_proxy;
	dynamic public class RegistryNamespace extends Proxy
	{
		protected var _rs:Dictionary;
		public function RegistryNamespace(name:String)
		{
			if(name)
			{
				
					_rs = Registry.getNamespace(name);
				
			}
		}
		flash_proxy override function getProperty(name:*):*
		{
			return _rs[name];
			if(_rs.hasOwnProperty(name))
				return _rs[name];
			else
				return null;
		}
		
		flash_proxy override function setProperty(name:*,value:*):void
		{
			_rs[name] = value;
		}
			
		flash_proxy override function  getDescendants(name:*):*
		{
			trace("not implemented");
		}
		/*flash_proxy override function  hasProperty(name:*):Boolean
		{
			return _rs.hasOwnProperty(name);
		} */
		
		

	}
}